const path = require('path');
const webpack = require('webpack')
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  //路径前缀
  publicPath: "/",
  lintOnSave: false,
  productionSourceMap: false,
	  // 设置webpack内部配置
	chainWebpack: (config)=>{
      config.resolve.alias.set('@', resolve('src')).set('_c',resolve('src/components')).set('&',resolve('static'));		  
	},
  configureWebpack: { externals: {'AMap': 'AMap', 'AMapUI': 'AMapUI'} }// 配置webpack的字段。
};
